package com.xxh.dasongapp.common.param.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 分页参数
 * @param <T>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="分页请求参数",description="分页请求参数")
public class PagePARAM<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分页页数")
    private Integer pageNum;
    @ApiModelProperty(value = "分页单页数据量")
    private Integer pageSize;

    @ApiModelProperty(value = "排序方式（asc为升序，desc为降序）")
    private String order;

    @ApiModelProperty(value = "排序字段")
    private String orderBy;

    @ApiModelProperty(value = "分页参数")
    private T searchPARAM;
}
